package com.kancy.learn.rpc.rmi.api.entity;

import java.io.Serializable;

/**
 * @author kancy
 * @version 1.0
 * @date 2019/1/31 10:44
 */
public class Result implements Serializable {
    private static final long serialVersionUID = 2L;
    private boolean result;
    private String msg;
    private long time;

    public Result() {
        setTime(System.currentTimeMillis());
    }

    public boolean isResult() {
        return result;
    }

    public void setResult(boolean result) {
        this.result = result;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public long getTime() {
        return time;
    }

    public void setTime(long time) {
        this.time = time;
    }

    @Override
    public String toString() {
        return "Result{" +
                "result=" + result +
                ", msg='" + msg + '\'' +
                ", time=" + time +
                '}';
    }
}
